Fix an issue that SwapChainDesc.DepthBufferFormat = TEX_FORMAT_R24G8_TYPELESS causing D3D12 invalid param error#691
Merged
TheMostDiligent merged 12 commits intoDiligentGraphics:masterfrom Aug 3, 2025
Conversation
…NT and GL_STENCIL_INDEX support
…ODE. Add error thrown when format not supported
…IL_INDEX for iOS and Android
…8_TYPELESS was not supported in D3D12 with error -> D3D12_CLEAR_VALUE::Format cannot be a typeless format. A fully qualified format must be supplied. Format = R24G8_TYPELESS. [ STATE_CREATION ERROR #817: ]
TheMostDiligent
requested changes
Aug 2, 2025
…pthBufferDesc.Format or TEX_FORMAT_UNKNOWN to support R24G8_TYPELESS.
f3e5352
into
DiligentGraphics:master
37 of 38 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An invalid param error
D3D12_CLEAR_VALUE::Format cannot be a typeless format. A fully qualified format must be supplied. Format = R24G8_TYPELESS.was thrown whenClearValue.Formatset toDXGI_FORMAT_R24G8_TYPELESS.We just leave the
Desc.ClearValue.Formatempty andGetClearFormatwil return a proper format for us.